home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-03-04 | 736 b | 36 lines | [TEXT/ToyS] |
- on open fsObjs
- set drawWin to ¬
- display drawing titled ¬
- "Icon Viewer" with dimensions {256, 100}
-
- repeat with fsObj in fsObjs
- ShowOne(drawWin, fsObj)
- end repeat
-
- display drawing drawWin with disposal
- end open
-
-
- on ShowOne(drawWin, fsObj)
- -- Get file name
- set fname to catalog name of (basic info for fsObj)
-
- -- Get icon as picture
- set myPic to (the icon for fsObj) as picture
-
- -- Draw it double size (scale {2,2})
- draw a picture into drawWin ¬
- using data myPic ¬
- offset by {96, 8} ¬
- with scale {2, 2} ¬
- with a clear slate
-
- -- Draw the name
- draw a string into drawWin ¬
- using data fname ¬
- offset by {128, 92} ¬
- using state {text size:18, text font:1}
-
- pause for 2 with seconds timing
- end ShowOne
-